Reviewer can edit CPs

Hello:
When you configure a Change Proposal System for a Project, you can check if Reviewer can edit CPs or not in the "Users" tab of the CPS configuration window.

Do you know how to get (or set) this check by DXL?

Thank you in advance.
Regards.
Daniel.
Daniel_Gonzalez - Thu Jul 16 02:58:57 EDT 2009

Re: Reviewer can edit CPs
llandale - Thu Jul 16 09:46:46 EDT 2009

While there are a couple CPS commands, CPS is fundamentally a suite of DXL written in other DXL commands; you won't find much 'CPS' in the DXL manual.

Investigating, I see that that flag is not local to each Project, but is in fact global for the entire database: configure one project and set it to 'true' and its 'true' for all other projects; likewise if you turn it off. Likewise the Email Updates flag.

That info is stored in a Configuration File:
Name: setup.txt
Folder: <DatabaseRootFolder>\conf\u1000001.dir\cps

(for me its here: C:\Doors-Data\v91-Local\conf\u1000001.dir\cps\setup.txt)

That file has two lines, each line is either 'True' or 'False'; first line is Email Updates, 2nd line is the update flag you are interested in.

You can use the 'conf' commands using confType area 'confSystem' to read and edit that file. I didn't try it, but here are some code that may work:

// Read current Settings:
ConfStream cs = confRead("Setup.txt", confSystem)
string sEmail, sUpdate
cs >> sEmail
cs >> sUpdate
close(cs)
bool bEmail = (sEmail == "True")
bool bUpdate = (sUpdate == "True")
// Write desired settings
ConfStream cs = confWrite("Setup.txt", confSystem)
cs << bEmail "\n"
cs << bUdate ""
close(cs)

  • Louie

Re: Reviewer can edit CPs
llandale - Thu Jul 16 09:48:36 EDT 2009

llandale - Thu Jul 16 09:46:46 EDT 2009
While there are a couple CPS commands, CPS is fundamentally a suite of DXL written in other DXL commands; you won't find much 'CPS' in the DXL manual.

Investigating, I see that that flag is not local to each Project, but is in fact global for the entire database: configure one project and set it to 'true' and its 'true' for all other projects; likewise if you turn it off. Likewise the Email Updates flag.

That info is stored in a Configuration File:
Name: setup.txt
Folder: <DatabaseRootFolder>\conf\u1000001.dir\cps

(for me its here: C:\Doors-Data\v91-Local\conf\u1000001.dir\cps\setup.txt)

That file has two lines, each line is either 'True' or 'False'; first line is Email Updates, 2nd line is the update flag you are interested in.

You can use the 'conf' commands using confType area 'confSystem' to read and edit that file. I didn't try it, but here are some code that may work:

// Read current Settings:
ConfStream cs = confRead("Setup.txt", confSystem)
string sEmail, sUpdate
cs >> sEmail
cs >> sUpdate
close(cs)
bool bEmail = (sEmail == "True")
bool bUpdate = (sUpdate == "True")
// Write desired settings
ConfStream cs = confWrite("Setup.txt", confSystem)
cs << bEmail "\n"
cs << bUdate ""
close(cs)

  • Louie

.... err .... use "cps/setup.txt" instead of "setup.txt".

Re: Reviewer can edit CPs
Daniel_Gonzalez - Fri Jul 17 01:01:56 EDT 2009

llandale - Thu Jul 16 09:48:36 EDT 2009
.... err .... use "cps/setup.txt" instead of "setup.txt".

Thank you very much, Louie.